home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2009 August / maximum-cd-2009-08.iso / DiscContents / AutoHotkey104803_Install.exe / Extras / Editors / Syntax / Scripts / Validate master syntax files.ahk < prev   
Encoding:
Text File  |  2004-12-04  |  556 b   |  29 lines

  1. ;File1 has full commands
  2. ;File2 has command names
  3.  
  4. File1 = ..\Commands.txt
  5. File2 = ..\CommandNames.txt
  6.  
  7. ;___________________________________________
  8.  
  9.  
  10. MisMatch = 0
  11. Count = 0
  12.  
  13. Loop, Read, %File2%
  14. {
  15.     Count++
  16.     2Line = %A_LoopReadLine%
  17.     FileReadLine, 1Line, %File1%, %A_Index%
  18.     
  19.     LineNum = %A_Index%
  20.     
  21.     Loop, Parse, 2Line, %A_Space%
  22.         IfNotInString, 1Line, %A_LoopField%
  23.         {
  24.             MsgBox,, MisMatch Found, Line Number = %LineNum%`n%File1%`t%1Line%`n%File2%`t%2Line%
  25.             MisMatch ++
  26.         }
  27. }
  28.  
  29. MsgBox, Total Mismatches: %MisMatch% of %Count%